const zlib= require("pako");
window = global
const base64 = require('base64-js');

function gzip(t) {

    let e, n = base64.toByteArray(t), i = new Uint8Array(n), r = zlib.inflate(i), o = "";
    s = 8192, a = r.length / s;
    for (e = 0; e < a; e++)
        o += String.fromCharCode.apply(null, r.slice(e * s, (e + 1) * s));
    return o += String.fromCharCode.apply(null, r.slice(e * s)),
        decodeURIComponent(window.escape(o))
}

console.log(gzip("H4sIAAAAAAAAAIuOVjIxNzc3sLAwMFDSUfII9VQIcfRU8HD0BPKCPTwDgJQ5SEZJx9DcyMLEzNTC1MjAwEDHIDYWAGWQcgA8AAAA"))
